#include "hardware_recv_send.h"

#if USE_UART_1
extern uint16_t USART1_WRITE;
//extern UART_HandleTypeDef huart1;
#endif
#if USE_UART_2
// extern UART_HandleTypeDef huart2;
// extern uint16_t USART2_WRITE;
#endif

#if USE_UART_1
uint8_t USART1_RX_BUF[USART1_REC_LEN] = {0};
#endif

#if USE_UART_2
// uint8_t USART2_RX_BUF[USART1_REC_LEN] = {0};
#endif

/*
	p_fifo->p_buf[p_fifo->write_pos & p_fifo->buf_size_mask] = byte;
	p_fifo->write_pos++;
*/

void HAL_UART_RxCpltCallback(uint8_t data)
{

#if USE_UART_2

#endif

#if USE_UART_1
        USART1_RX_BUF[USART1_WRITE & (USART1_REC_LEN - 1)] = data;
		USART1_WRITE++;

#endif

}

#if USE_UART_1

#endif
